﻿
<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>印刷</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <script src="~/js/layui/layui.js"></script>
    <link href="~/js/layui/css/layui.css" rel="stylesheet" />
    <link href="~/X-admin/css/xadmin.css" rel="stylesheet" />
    <script src="~/X-admin/js/jquery.min.js"></script>
    <script src="~/X-admin/js/xadmin.js"></script>
    <script src="~/js/framework/sysframework.js"></script>
    <script src="~/js/framework/commonjs.js"></script>

</head>
<body>
    <ul lay-bar="disabled" class="mWebBanner" id="mWebBanner">
        <li class="layui-nav-item" style="float:left;">
            <button id="btn-Save" type="button" name="btn_update" onclick="SavePlanGYData('dForm')" class="buttonCss">
                <i class="layui-icon" style="margin-right:3px">&#x1005;</i>保存数据
            </button>
        </li>
    </ul>
    <div class="layui-card" >
        <div class="layui-card-body" style="padding-top:1%">
            <div class="layui-card-body" id="layui-table-main">
                <table class="layui-hide" id="tData" lay-filter="tData"></table>
            </div>

            <form id="dForm" class="layui-form layui-col-space5" lay-filter="form-filter">
@* 
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            原材料名称
                        </div>
                        <input type="text" id="yclpro" name="yclpro" class="layui-input" disabled />
                    </div>

                    <div class="layui-input-group" style="float:left;margin-left:7%">
                        <div class="layui-input-prefix">
                            原材料规格
                        </div>
                        <input type="text" id="yclspec" name="yclspec" class="layui-input" disabled />
                    </div>
                  
                </div>
                <div class="layui-form-item">
          
                
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                         原材料件数
                        </div>
                        <input type="text" id="ycljs" name="ycljs" class="layui-input" disabled />
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:7%">
                        <div class="layui-input-prefix">
                            原材数量
                        </div>
                        <input type="text" id="ycls" name="ycls" class="layui-input" disabled />

                    </div>
                </div> *@

                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            印刷米数
                        </div>
                        <input type="text" id="gxNum" name="gxNum" class="layui-input" />
                    </div>

                    <div class="layui-input-group" style="float:left;margin-left:7%">
                        <div class="layui-input-prefix">
                            印刷成品米数
                        </div>
                        <input type="text" id="yscpms" name="yscpms" class="layui-input">

                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:7%">
                        <div class="layui-input-prefix">
                            电晕面
                        </div>
                        <input type="text" id="ysdym" name="ysdym" class="layui-input">

                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            油墨类型
                        </div>
                        <input type="text" id="ymlx" name="ymlx" class="layui-input">

                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        @* <div class="layui-input-prefix">
                            油墨类型
                        </div> *@
                        <input type="text" id="memo" name="memo" class="layui-input">

                    </div>
                </div>
     
                <div class="layui-form-item">
                <div class="layui-card-body layui-table-body" id="layui-table-main">
                    <table class="layui-hide" id="list" lay-filter="list"></table>
                </div>
                </div>
                <div class="layui-form-item">

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                           注意事项
                        </div>
                         <input type="text" id="fbyq" name="fbyq" class="layui-input" style="width:400%"> 
                       @* <textarea id="fbyq" name="fbyq" placeholder="请输入内容" class="layui-textarea" style="width:320%"></textarea>*@
                    </div>
                   
                </div>
                <div style="width:98%;overflow-x: auto;" >
                    <table class="layui-table" >
                        <tr>
                            <th >序号</th>
                            <th>1</th>
                            <th>2</th>
                            <th>3</th>
                            <th>4</th>
                            <th>5</th>
                            <th>6</th>
                            <th>7</th>
                            <th>8</th>
                            <th>9</th>
                            <th>10</th>
                        </tr>
                        <tr>
                            <td>色序</td>
                            <td>
                                <input type="text" id="sexu1" name="sexu1" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu2" name="sexu2" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu3" name="sexu3" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu4" name="sexu4" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu5" name="sexu5" class="layui-input">
                                </td>
                            <td>
                                <input type="text" id="sexu6" name="sexu6" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu7" name="sexu7" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu8" name="sexu8" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu9" name="sexu9" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu10" name="sexu10" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td>重量</td>
                            <td>
                                <input type="text" id="zhongliang1" name="zhongliang1" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang2" name="zhongliang2" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang3" name="zhongliang3" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang4" name="zhongliang4" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang5" name="zhongliang5" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang6" name="zhongliang6" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang7" name="zhongliang7" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang8" name="zhongliang8" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang9" name="zhongliang9" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang10" name="zhongliang10" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td>粘度</td>
                            <td>
                                <input type="text" id="niandu1" name="niandu1" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu2" name="niandu2" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu3" name="niandu3" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu4" name="niandu4" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu5" name="niandu5" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu6" name="niandu6" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu7" name="niandu7" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu8" name="niandu8" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu9" name="niandu9" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu10" name="niandu10" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td>专色油墨比例</td>
                            <td>
                                <input type="text" id="ymbl1" name="ymbl1" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl2" name="ymbl2" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl3" name="ymbl3" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl4" name="ymbl4" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl5" name="ymbl5" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl6" name="ymbl6" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl7" name="ymbl7" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl8" name="ymbl8" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl9" name="ymbl9" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl10" name="ymbl10" class="layui-input">
                            </td>
                        </tr>
                       
                    </table>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;margin-top:2%">
                        <div class="layui-input-prefix">
                            进风量
                        </div>
                        <input type="text" id="jinfeng" name="jinfeng" class="layui-input" />
                    </div>

                    <div class="layui-input-group" style="float:left;margin-left:7%;;margin-top:2%">
                        <div class="layui-input-prefix">
                            出风量
                        </div>
                        <input type="text" id="chufeng" name="chufeng" class="layui-input">

                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:7%;;margin-top:2%">
                        <div class="layui-input-prefix">
                            热封面
                        </div>
                        <input type="text" id="ysrefengmian" name="ysrefengmian" class="layui-input">

                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                         温度
                        </div>
                        <input type="text" id="wendu" name="wendu" class="layui-input" style="width:50%" />
                    </div>

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            湿度
                        </div>
                        <input type="text" id="shidu" name="shidu" class="layui-input" style="width:50%">

                    </div>
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            机速
                        </div>
                        <input type="text" id="jisu" name="jisu" class="layui-input" style="width:50%">

                    </div>
           
               
                </div>
                <div class="layui-form-item" style="margin-top:2%">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            接头
                        </div>
                        <input type="text" id="jt" name="jt" class="layui-input" style="width:50%">

                    </div>
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            毛重
                        </div>
                        <input type="text" id="mz" name="mz" class="layui-input" style="width:50%">
                    </div>
                </div>

              @*   <div class="layui-form-item" style="margin-top:2%">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                          专色油墨比例
                        </div>
                        <textarea id="ymbl" name="ymbl" placeholder="请输入内容" class="layui-textarea" style="width:550%"></textarea>
                    </div>
                </div> *@
                <div style="width:98%;overflow-x: auto;">
                    <table class="layui-table">
                        <tr>
                            <th>名称</th>
                            <th>乙酯</th>
                            <th>正丙酯</th>
                            <th>异丙醇</th>
                            <th>丁酯</th>
                           
                        </tr>
                        <tr>
                            <td>领用重量(kg)</td>
                            <td>
                                <input type="text" id="lgzl01" name="lgzl01" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="lgzl02" name="lgzl02" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="lgzl03" name="lgzl03" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="lgzl04" name="lgzl04" class="layui-input">
                            </td>
                           
                        </tr>
                        <tr>
                            <td>批号</td>
                            <td>
                                <input type="text" id="pihao01" name="pihao01" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="pihao02" name="pihao02" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="pihao03" name="pihao03" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="pihao04" name="pihao04" class="layui-input">
                            </td>
                           
                        </tr>
                        <tr>
                            <td>配比</td>
                            <td>
                                <input type="text" id="peibi01" name="peibi01" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="peibi02" name="peibi02" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="peibi03" name="peibi03" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="peibi04" name="peibi04" class="layui-input">
                            </td>
                           
                        </tr>

                    </table>
                </div>
                <input type="hidden" id="plCode" name="plCode">
                <input type="hidden" id="gxCode" name="gxCode" value="YS">
            </form>
        </div>
    </div>

</body>

</html>
<script src="~/js/sysweb/planjs.js"></script>

<script>

    var plCode = "", isRead = "0";
 
    $(function () {
        plCode = getUrlVariable("plCode");
        isRead = getUrlVariable("isRead");
        $("input[ name='plCode']").val(plCode);

        if (isRead == "1")
            $('#mWebBanner').hide();
    
        loadGyFormData(plCode, "YS");
        loadBanGunData();
        loadGyMaterial();
    })
    /**
    * 加载数据
    * **/
    function loadBanGunData() {

        layui.use('table', function () {
            var table = layui.table;
            table.render({
                elem: '#list'

                , cols: [[ //标题栏
                      { field: 'byBarCode', align: 'center', title: '版辊条码', width: 120 }
                    , { field: 'byCode', align: 'center', title: '版 号', width: 120 }
                    , { field: 'banchang', align: 'center', title: '版 长', width: 120}
                    , { field: 'banzhou', align: 'center', title: '版 周', width: 100 }
                    , { field: 'houseName', align: 'center', title: '存放仓库', width: 180 }
                    , { field: 'statusName', align: 'center', title: '在库状态', width: 120 }
                ]], done: function (res, curr, count) {
           
                }
                , url: "../Plan/getDataList?dataType=pgyb&condition="+plCode
                , skin: 'row' //表格风格
                , even: true
                , page: false //是否显示分页
                , limits: [20, 25, 30]
                , limit: 20 //每页默认显示的数量
                , id: "list"
            });
     
        });

    }


    function loadGyMaterial() {
        var json = {
            plCode: plCode,
            gxCode: "YS"
        }
        layui.use('table', function () {

            var dUrl = "../Plan/GetDataList?dataType=gxzym&condition=" + JSON.stringify(json);
            var table = layui.table;
            table.render({
                elem: '#tData'

                , cols: [[ //标题栏

                    { field: 'proName', align: 'center', title: '材料名称', width: '20%' }
                    , { field: 'spec', align: 'center', title: '材料规格', width: '18%' }
                    , { field: 'zyNumber', align: 'center', title: '数 量', width: '12%' }

                ]], done: function (res, curr, count) {
              
              
                }
                //   , height: $(document).height() - $('#list').offset().top - 20
                , url: dUrl
                , skin: 'row' //表格风格
                , even: true
                , page: { layout: ['count', 'prev', 'page', 'next', 'skip', 'limit'], groups: 1, first: false, last: false }
                , page: false //是否显示分页
                , limits: [20, 35, 50]
                , limit: 20 //每页默认显示的数量
                , id: "tData"
            });


        });
      
    }



</script>

